<div class="panel-header">
    <i/>服务台待处理告警
    <div more-link="more.link" ng-if="more&&more.enabled!==false">{{more.text||'更多'}}</div>
</div>
<div class="panel-content">
    <div class="pure-g">
        <div ng-repeat="event in events|limitTo : 7"
             class="pure-u-1 event"
             title="{{event.eventContent+'\n责任人: '+event.eventPerson+'\n'}}{{event.eventTime|moment:'format':'YYYY-MM-DD HH:mm:ss'}}"
             ng-click="openDetail(event)"
             ng-mouseenter="events._current=$index;">
            <div style="padding-right: 50px; white-space: nowrap;overflow: hidden;text-overflow:ellipsis;">
                <i class="icon" title="{{event.eventPerson}}" ng-style="{backgroundColor:getIconColor(event)}"></i>
                <span style="white-space: nowrap;overflow: hidden">{{event.eventContent+' @'+event.eventPerson}}</span>
            </div>

            <div class="event-time"
                 title="{{event.eventTime|moment:'format':'YYYY-MM-DD HH:mm:ss'}}">
                {{event.eventTime|moment:'fromNow'}}
            </div>
        </div>
    </div>
</div>